<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>main.jsp</title>

    <style type="text/css">
        .main {
            text-align:center;
            font:bold 30px 微软雅黑, Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;

        }
        .box1{
            width:1200px;
            height:600px;
            text-align:center;
            padding:10%;
            margin:0 auto;
            font:bold 30px 微软雅黑, Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
        }
        .box_l_t{
            background-color:#00CCCC;
            width:500px;
            height:280px;
            border-radius:5px;
            position:relative;
            float:left;
        }
        .box_l_t_icon{
            width:100px;
            height:100px;
            padding-top:70px;
            margin:auto;
        }
        .box_l_t_text_1{
            background-color: rgba(0,0,0,0.40);
            width:500px;
            height:60px;
            line-height:60px;
            bottom:0px;
            position:absolute;
            color:rgba(255,255,255,1.00);
            border-radius:0px 0px 5px 5px;
            margin-bottom:15px;
        }
        .box_l_t_text{
            background-color: rgba(0,0,0,0.40);
            width:500px;
            height:60px;
            line-height:60px;
            bottom:0px;
            position:absolute;
            color:rgba(255,255,255,1.00);
            border-radius:0px 0px 5px 5px;
            margin-bottom:5px;
        }


    </style>
    <link href="${ctx}/assets/fontawesome/css/font-awesome.min.css" type="text/css" rel="stylesheet"/>
    <link href="${ctx}/assets/simple-line-icons/css/simple-line-icons.css" rel="stylesheet" type="text/css"/>
    <!--核心CSS-->
    <link href="${ctx}/assets/bootstrap3/css/bootstrap.css" rel="stylesheet" type="text/css" id="bscss"/>
    <link href="${ctx}/assets/app/app.css" rel="stylesheet" type="text/css"/>
     <script src="${ctx}/assets/jquery-1.11.3.min.js" type="text/javascript"></script>
      <!-- NOTY -->
    <script src="${ctx}/media/js/jquery.noty.js" type="text/javascript"></script>
    <script src="${ctx}/media/js/notyTopRight.js" type="text/javascript"></script>
    <script src="${ctx}/media/js/notyCenter.js" type="text/javascript"></script>
    <script src="${ctx}/media/js/noty-default.js" type="text/javascript"></script>
</head>
<body>
<jsp:include page="../decorators/header.jsp"/>

<script>
	var ctx = '${ctx}';
   /*  function toWarningMain(){
        document.location.href = "${ctx}/home/warningMain.do";
    }
    function toIntelligentNoticeMain(){
        document.location.href = "${ctx}/intelligent/main.do";
    }
    function toAnalyzeMain(){
        document.location.href = "${ctx}/analyze/main.do";
    }
    function toMonitorMain(){
        document.location.href = "${ctx}/monitor/main.do";
    } */

    
    
    function toMenus(menuCode){
    	$.ajax({
			type : 'get',dataType : 'json',
			url : ctx + "/sys/role/userMenu.do",
			contentType : 'charset=utf-8',
			data : {
				"menuCode" : menuCode
			},
			success : function(msg) {
				var data = msg.count;
				if(data>0){
					switch(menuCode){
					case 4000:
					 document.location.href = "${ctx}/home/warningMain.do";
					  break;
					case 2000:
					 document.location.href = "${ctx}/intelligent/main.do";
					  break;
					case 3000:
						 //document.location.href = "${ctx}/monitor/main.do";
						 $.notify("<em class='fa fa-bell-o'></em>&nbsp;&nbsp;模块尚未开发！",{
                				status:'danger',
               				 timeout:0
            				});
					  break;
					case 1000:
						// document.location.href = "${ctx}/analyze/main.do";
						 $.notify("<em class='fa fa-bell-o'></em>&nbsp;&nbsp;模块尚未开发！",{
                				status:'danger',
               				 timeout:0
            				});
					  break;
					case 5000:
						 document.location.href = "${ctx}/sysConfig/main.do";
						  break;
					default:
						document.location.href = "${ctx}/home/warningMain.do";
					}
				}else{ //没权限
					noty({text: '您没权限访问该菜单！',type: "information",dismissQueue: true,layout: 'topRight',theme: 'defaultTheme',timeout:3000});
				}
			}
		});
    }
    
    
</script>
<div class="main">
    <div class="content-wrapper">


        <div class="row">
            <div class="col-sm-6 " style="cursor:pointer;" onclick="toMenus(4000)">
                <div class="pull-right" style="width:500px;background-color:#00CCCC;height:280px;margin:5px 0px 15px 0px;border-radius: 5px 5px 5px 5px;">
                    <div class=" box_l_t_icon">
                        <img src="${ctx}/media/image/home/1.png">
                    </div>
                    <div class="box_l_t_text_1">
                        渠道监控与预警
                    </div>
                </div>
            </div>
            <div class="col-sm-6" style="cursor:pointer;" onclick="toMenus(2000)">
                <div style="width:500px;background-color:#2F62D8; height:280px;margin:5px 5px 15px 0px;border-radius: 5px 5px 5px 5px;">
                    <div class=" box_l_t_icon">
                        <img src="${ctx}/media/image/home/2.png">
                    </div>
                    <div class="box_l_t_text_1">
                        纳税人需求智能提示
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-6 " style="cursor:pointer;" onclick="toMenus(3000)">
                <div class="pull-right" style="width:500px;background-color:#7266BB;height:280px;margin:15px 0px 5px 0px;border-radius: 5px 5px 5px 5px;">
                    <div class=" box_l_t_icon">
                        <img src="${ctx}/media/image/home/3.png">
                    </div>
                    <div class="box_l_t_text">
                        纳税服务管理与监控
                    </div>
                </div>
            </div>
            <div class="col-sm-6" style="cursor:pointer;" onclick="toMenus(1000)">
                <div style="width:500px;background-color:#66CCFF;height:280px;margin:15px 0px 5px 0px;border-radius: 5px 5px 5px 5px;">
                    <div class=" box_l_t_icon">
                        <img src="${ctx}/media/image/home/4.png">
                    </div>
                    <div class="box_l_t_text">
                        服务数据深度分析
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>
